package com.qf.mybatis01.utils;

import com.alibaba.druid.pool.DruidDataSource;
import org.apache.ibatis.datasource.pooled.PooledDataSourceFactory;

/**
 * 自定义用于更换mybatis默认连接池对象的子类型
 * 注意：这里只需要把 dataSource 属性替换成DruidDataSource 对象即可
 */
public class MyDruidDataSourceFactory extends PooledDataSourceFactory {
    public MyDruidDataSourceFactory() {
        this.dataSource = new DruidDataSource();
    }
}
